//
//  EmbeddedScrollPage.h
//  ColumnWidget
//
//  Created by -_Asuna on 16/8/8.
//  Copyright © 2016年 David. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol EmbenddedViewDataSource;
@interface EmbenddedScrollPage : UIViewController<UIScrollViewDelegate>{
    
}
@property (nonatomic,strong) UIScrollView *fatherScroll;
@property (nonatomic,strong) NSMutableArray *embenddedViews;
@property (nonatomic,strong) NSMutableSet *reuseQueue;
@property (nonatomic,weak) id<EmbenddedViewDataSource> delegate;

-(void)setEmbenddedViews:(NSArray *)embenddedViews;
-(void)setScrollInset:(UIEdgeInsets)insets;

@end

@protocol EmbenddedViewDataSource

-(id)askNewViewForIndex:(NSUInteger)index;

@end
